<#import "desktop.ftl" as d>
<#import "spring.ftl" as spring>

<#assign pageTitle>
	<@spring.message "login.generic.page.title" />
</#assign>

<#assign showLanguageSelector=true />

<@d.desktop pageTitle showLanguageSelector>

	<h1><@spring.message "login.h1.title" /></h1>
	
	<div id="login_form">
		<form method="post" action="do_login.html" id="main_form" name="main_form">
			<div>
				<label for="login"><@spring.message "login.label.login" />:</label><br />
				<@spring.bind "loginForm.login" />
				<input 
					type="text" 
					autocomplete="off"
					id="login" 
					name="${spring.status.expression}"  
					value="${spring.status.value?default("")}" />
				<@spring.showErrors separator="|" classOrStyle="validation_error" />
				<#if loginForm.error>
					<span class="validation_error">${loginForm.errorMsg}</span>
				</#if>
			</div>
			
			<div style="margin-top: 20px;">
				<label for="password"><@spring.message "login.label.password" />:</label><br />
				<@spring.bind "loginForm.password" />
				<input 
					type="password" 
					id="password" 
					name="${spring.status.expression}"  
					value="${spring.status.value?default("")}" />
			</div>
			<div style="margin-top: 20px;">
				<button><@spring.message "login.label.entrar" /></button>
			</div>
		</form>
	</div>
	
</@d.desktop>